package com.zf.rpc.transport;

import com.zf.rpc.serializer.CommonSerializer;

/**
 * @ProjectName: RPC-zhaofeng
 * @Package: com.zf.rpc.transport.socket
 * @ClassName: RpcServer
 * @Author: zf
 * @Description: 服务器类通用接口
 * @Date: 2021/5/7 20:36
 * @Version: 1.0
 */
public interface RpcServer {

    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;

    void start();

    <T> void publishService(Object service, String serviceName);
}
